Note: Make sure you scroll down the web page and look for ‘Get just the command line tools’
Figure 1: How to find the correct SDK tool package for Mac OS X
Download the file from Mac OS X.
To install the SDK tools package into your system, access the folder ‘tools’ and double click on ‘android’. See Figure 2 for details
Figure 2: How to install SDK tools package into your computer system
This will bring up the Android SDK Manager window. See Figure 3.
Note: Make sure that at least one Android platform with API level equal to or higher than 9, Platform Tools, and USB Drivers (only for Windows) are selected and installed
Figure 3: What to install from Android SDK Manager Install JDK
Configuring Settings in Unity to Make It Compatible to Android System
Check that the SDK and JDK a properly loaded into Unity by clicking ‘Unity’ → ‘Preferences’ → ‘External Tools’. See Figure 5.
Figure 5: Check SDK and JDK is properly loaded to Unity
Note:
To load SDK into Unity, locate your ‘android-sdk-macosx’ folder and choose that folder
To load JDK into Unity, access ‘/Library/Java/JavaVirtualMachines/jdk1.8.0_91.jdk/Contents/Home/’ from your computer (exact jdk version will change over time)
Switch Unity platform to Android platform by going to ‘File’ → ‘Build Settings’ → ‘Android’ → ‘Switch Platforms’. See Figure 6.
Note: Click ‘Add Open Scene’ to add your scene into the build
Figure 6: Switching Unity platform to Android platform
Access Editor Setting. Click ‘Edit’ → ‘Project Settings’ → ‘Editor’. Change Device to ‘Any Android Device’. See Figure 7.
Figure 7: Configure Editor Settings
Configure Player Settings. Player Settings can be accessed from ‘File’ → ‘Build Settings’ → ‘Player Settings’. See Figure 8.
Figure 8: How to access Player Settings
Input ‘Company Name’, ‘Product name’, and ‘Bundle Identifier’. IMPORTANT:In ‘Bundle Identifier’, the name MUST be in this format: com.(Company Name).(Product Name). Company and product name must be identical with the ‘Bundle Identifier’. See Figure 9.
Figure 9: Configuring Player Settings
Exporting Unity to Android Platform
To export Unity model into Android platform, click ‘File’ → ‘Build Settings’ → ‘Android’ → ‘Build & Run’
If building for GearVR, you need to also make sure you put your oculus signature file in your project:
Open terminal on your Mac, navigate to your android sdk folder-> platform-tools, then type ./adb devices, you will get a devices id.
Go to : https://developer.oculus.com/osig/ and download the signature to YourProjectName --- > assets --> Plugins ---> android ---> assets.
Note:
Make sure that Prefabs for ‘Cross Platform Input’ is loaded into the scene. These prefabs can be accessed from standard assets.
Make sure that USB is connected to the Android Device
How to Export Unity Models Into Android Application (Windows)
In order to export Unity into Android application, there are several steps that need to be done:
Note: Make sure you scroll down the webpage and look for ‘Get just the command line tools’
Figure 1: How to find the correct SDK tool package for Windows
Download the .exe for Windows
To install the SDK tools package into your system, double-click the .exe file that you just downloaded. Follow the instructions to install Android SDK tools. Choose ‘Install for anyone using this computer’. See Figure 2.
Note: Take note of the ‘Destination Folder’ as we will need this information in order to map it to Unity.
Figure 2: How to install SDK tools package into your computer system
After installation, it will bring up the Android SDK Manager window. See Figure 3.
Note: Make sure that at least one Android platform with API level equal to or higher than 9, Platform Tools, and Google USB Drivers are selected and installed
Figure 3: What to install from Android SDK Manager
Configuring Settings in Unity to Make It Compatible to Android System
Check that the SDK and JDK are properly loaded into Unity by clicking ‘Edit’ → ‘Preferences’ → ‘External Tools’. See Figure 6.
Figure 6: Check SDK and JDK is properly loaded to Unity
Switch Unity platform to Android platform by going to ‘File’ → ‘Build Settings’ → ‘Android’ → ‘Switch Platforms’. See Figure 7.
Note: Click ‘Add Open Scene’ to add your scene into the build
Figure 7: Switching Unity platform to Android platform
Access Editor Setting. Click ‘Edit’ → ‘Project Settings’ → ‘Editor’. Change Device to ‘Any Android Device’. See Figure 8.
Figure 8: Configure Editor Settings
Configure Player Settings. Player Settings can be accessed from ‘File’ → ‘Build Settings’ → ‘Player Settings’. See Figure 9.
Figure 9: How to access Player Settings
Input ‘Company Name’, ‘Product name’, and ‘Bundle Identifier’. IMPORTANT:In ‘Bundle Identifier’, the name MUST be in this format: com.(Company Name).(Product Name). Company and product name must be identical with the ‘Bundle Identifier’. See Figure 10.
Figure 10: Configuring Player Settings
Exporting Unity to Android Platform
To export Unity model into Android platform, click ‘File’ → ‘Build Settings’ → ‘Android’ → ‘Build’
Note:
Make sure that Prefabs for ‘Cross Platform Input’ is loaded into the scene. These prefabs can be accessed from standard assets.
Make sure that USB is connected to the Android Device
Table of Contents
How to Export Unity Models Into Android Application (Mac OS X)
In order to export Unity into Android application, there are several steps that need to be done:
Install Android SDK
- Go to __https://developer.android.com/studio/index.html__ and look for SDK tool package that suits your computer. See Figure 1.
Note: Make sure you scroll down the web page and look for ‘Get just the command line tools’- This will bring up the Android SDK Manager window. See Figure 3.
Note: Make sure that at least one Android platform with API level equal to or higher than 9, Platform Tools, and USB Drivers (only for Windows) are selected and installedInstall JDK
Android Device Configuration
Configuring Settings in Unity to Make It Compatible to Android System
Note:
- Switch Unity platform to Android platform by going to ‘File’ → ‘Build Settings’ → ‘Android’ → ‘Switch Platforms’. See Figure 6.
Note: Click ‘Add Open Scene’ to add your scene into the buildExporting Unity to Android Platform
If building for GearVR, you need to also make sure you put your oculus signature file in your project:
YourProjectName --- > assets --> Plugins ---> android ---> assets.
Note:
How to Export Unity Models Into Android Application (Windows)
In order to export Unity into Android application, there are several steps that need to be done:
Install Android SDK
- Go to __https://developer.android.com/studio/index.html__ and look for SDK tool package that suits your computer. See Figure 1.
Note: Make sure you scroll down the webpage and look for ‘Get just the command line tools’- To install the SDK tools package into your system, double-click the .exe file that you just downloaded. Follow the instructions to install Android SDK tools. Choose ‘Install for anyone using this computer’. See Figure 2.
Note: Take note of the ‘Destination Folder’ as we will need this information in order to map it to Unity.- After installation, it will bring up the Android SDK Manager window. See Figure 3.
Note: Make sure that at least one Android platform with API level equal to or higher than 9, Platform Tools, and Google USB Drivers are selected and installedDownload Suitable Driver for your Device
Note: This step is very important as without appropriate driver, your Unity model will not run on your Android device.
Install JDK
Android Device Configuration
Configuring Settings in Unity to Make It Compatible to Android System
- Switch Unity platform to Android platform by going to ‘File’ → ‘Build Settings’ → ‘Android’ → ‘Switch Platforms’. See Figure 7.
Note: Click ‘Add Open Scene’ to add your scene into the buildExporting Unity to Android Platform
Note: